home *** CD-ROM | disk | FTP | other *** search
/ QRZ! Ham Radio 8 / QRZ Ham Radio Callsign Database - Volume 8.iso / mac / files / ant_nec / nec81inf.txt < prev    next >
Text File  |  1996-06-25  |  3KB  |  69 lines

  1. The modified source codes of NEC-81 antenna analysis program are located in
  2. this directory.
  3.  
  4. The Sun-4 Fortran 77 compiler can read this code and the code works in
  5. Sparc-based SUN-4 computers. Some f77 compilers (e.g. Stardent) do not
  6. accept this code, though.
  7.  
  8. The compiling process is performed as follows (under UNIX OS):
  9.  
  10. f77 -0 nec3000 *.f >& errors
  11.  
  12. which makes an executable file nec3000 and directs the compiler messages to
  13. the file named errors. 
  14.  
  15. The array dimensions in the source code are modified to allow the maximum
  16. number of segments to be 3000. The altered variables are listed below:
  17.  
  18. Variable    Original    Altered        Purpose
  19. name        value        value
  20. ------------------------------------------------------------------------
  21. LD        300        3000        Max. number of segments
  22.                         and surface patches
  23.  
  24. IRESRV        8100        1000000        Nr. of words in core
  25.                         storage
  26.  
  27. NETMX        30        100        Max. number of non-
  28. NDIMN        30        100        radiating neworks.
  29. NDIMNP        31        101        NETMX, NDIMN and NDIMNP
  30.                         must all be specified
  31.  
  32. NSMAX        30        50        Max. nr. of voltage sources
  33.  
  34. LOADMX        30        100        Max. number of loads
  35.                         (LD Cards)
  36.  
  37.  
  38. The program executes reasonably fast, if the simulation fits in the CPU
  39. memory. If the machine has to  use disk as a virtual memory, the execution
  40. time grows rapidly. The core size is about 20 Mb, when the listed variable
  41. values are used.
  42.  
  43. The core can be made smaller by reducing the value of IRESRV. The program
  44. then makes temporary files on the disk, if the simulation does not fit in
  45. the core.
  46.  
  47. nec_bat is a shellscript-file, which reads the names of the input- and
  48. outputfiles from the file necfiles and writes the start- and endtimes of
  49. the execution to the file dates. The program messages are directed to the
  50. file nec_run_log. The purpose of the batch file is to allow running NEC on
  51. background. nec_bat should be used as follows:
  52.  
  53. nec_bat &
  54.  
  55. which starts the process and leaves it running on background. Of course,
  56. the NEC program can be used interactively as well, by typing the compiled
  57. program name (e.g. nec3000) at the command line, in which case the program
  58. prompts for the input- and outputfilenames and continues running on
  59. foreground. 
  60.  
  61. The results of the program have been compared to the results of the PC
  62. version and they seemed to match. Only small differences in 3rd and 4th
  63. decimal of the computed gains were noted. The execution time was about 1/10
  64. of the PC version when computing a 250-segment simulation.
  65.  
  66. This is the first modified version, any comments and suggestions are welcome.
  67.  
  68.     Petri Kotilainen OH3MCK
  69.